1 using UnityEngine;
2 using
System.Collections;
3
4 public
class DemoRPGMovement : MonoBehaviour
5 {
6     
public RPGCamera Camera;
7
8     
void OnJoinedRoom()
9     {
10         CreatePlayerObject();
11     }
12
13     
void CreatePlayerObject()
14     {
15         Vector3 position =
new Vector3( 33.5f, 1.5f, 20.5f );
16
17         GameObject newPlayerObject = PhotonNetwork.Instantiate(
"Robot Kyle RPG", position, Quaternion.identity, 0 );
18
19         Camera.Target = newPlayerObject.transform;
20     }
21 }



Trò chơi Tic-Tac-Toe, game đánh caro full source code 53.437 lượt xem

Gõ tìm kiếm nhanh...